#define _CRT_SECURE_NO_WARNINGS

#include<stdio.h>

void pritf(unsigned int w)
{
	if (w > 9)
	{
		pritf(w / 10);
	}
	printf("%u ", w % 10);
}

int main()
{
	unsigned int num = 0;
	scanf("%u", &num);
	pritf(num);
	return 0;
}

